package com.ruoyi.ies.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.ies.mapper.VehicleRouteMapper;
import com.ruoyi.ies.domain.VehicleRoute;
import com.ruoyi.ies.service.IVehicleRouteService;

/**
 * 车辆路线Service业务层处理
 * 
 * @author July
 * @date 2023-06-15
 */
@Service
public class VehicleRouteServiceImpl implements IVehicleRouteService 
{
    @Autowired
    private VehicleRouteMapper vehicleRouteMapper;

    /**
     * 查询车辆路线
     * 
     * @param id 车辆路线主键
     * @return 车辆路线
     */
    @Override
    public VehicleRoute selectVehicleRouteById(Long id)
    {
        return vehicleRouteMapper.selectVehicleRouteById(id);
    }

    /**
     * 查询车辆路线列表
     * 
     * @param vehicleRoute 车辆路线
     * @return 车辆路线
     */
    @Override
    public List<VehicleRoute> selectVehicleRouteList(VehicleRoute vehicleRoute)
    {
        return vehicleRouteMapper.selectVehicleRouteList(vehicleRoute);
    }

    /**
     * 新增车辆路线
     * 
     * @param vehicleRoute 车辆路线
     * @return 结果
     */
    @Override
    public int insertVehicleRoute(VehicleRoute vehicleRoute)
    {
        return vehicleRouteMapper.insertVehicleRoute(vehicleRoute);
    }

    /**
     * 修改车辆路线
     * 
     * @param vehicleRoute 车辆路线
     * @return 结果
     */
    @Override
    public int updateVehicleRoute(VehicleRoute vehicleRoute)
    {
        return vehicleRouteMapper.updateVehicleRoute(vehicleRoute);
    }

    /**
     * 批量删除车辆路线
     * 
     * @param ids 需要删除的车辆路线主键
     * @return 结果
     */
    @Override
    public int deleteVehicleRouteByIds(Long[] ids)
    {
        return vehicleRouteMapper.deleteVehicleRouteByIds(ids);
    }

    /**
     * 删除车辆路线信息
     * 
     * @param id 车辆路线主键
     * @return 结果
     */
    @Override
    public int deleteVehicleRouteById(Long id)
    {
        return vehicleRouteMapper.deleteVehicleRouteById(id);
    }
}
